<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <strong>
                    内容详情
                </strong>
            </div>

            <div class="panel-body">
                <form class="form-horizontal" role="form" ng-submit="createOrUpdate()">
                    <div>
                        <h3>{{title}}</h3>
                    </div>

                    <div>
                        <h6>{{update_time | date: 'yyyy-MM-dd hh:mm:ss'}}    {{author.realname}}</h6>
                    </div>

                    <p ng-bind-html="content" class="content_section"></p>
                    <div class="divider"></div>
                    <p style="margin: auto">
                        <div>相关附件:</div>
                        <div ng-show="attachments.length == 0">
                            暂无附件
                        </div>
                        <div ng-show="attachments.length > 0" ng-repeat="d in attachments">
                            <a href="{{d.url}}">{{d.desc}}</a>
                        </div>
                    </p>

                    <div class="form-actions">
                        <button type="button" class="btn col-sm-1 cancel_btn" ng-click="cancel()">返回</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>